package test06;

/**
 * 工作负载分析类
 */
public class WorkloadProfile {
    private double requestRate;
    private int avgInputLength;
    private double latencySLA;

    public WorkloadProfile(double requestRate, int avgInputLength, double latencySLA) {
        this.requestRate = requestRate;
        this.avgInputLength = avgInputLength;
        this.latencySLA = latencySLA;
    }

    public void analyzeCurrentLoad() {
        System.out.printf("工作负载分析: 请求率=%.1f req/s, 平均输入长度=%d tokens, 延迟SLA=%.1fms%n",
                requestRate, avgInputLength, latencySLA);
    }

    // Getters
    public double getRequestRate() { return requestRate; }
    public int getAvgInputLength() { return avgInputLength; }
    public double getLatencySLA() { return latencySLA; }
}
